package com.mazaiting.uac;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * 统一认证验证码/短信验证码等服务
 *
 * @author mazaiting
 * @create_time 2022/9/26 09:19
 */

// 激活缓存
@EnableCaching
// 激活服务注册
@EnableDiscoveryClient
@EnableConfigurationProperties
@ComponentScan(basePackages = "com.mazaiting")
@ServletComponentScan(basePackages = "com.mazaiting")
@SpringBootApplication
public class ApolloUacApplication {

    public static void main(String[] args) {
        try {
            SpringApplication.run(ApolloUacApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
